/**
 * 
 * @Author: biubiu0002
 * @Date: 2021-04-26 1:12
 **/

#include <StudentService.h>
#include "Student.h"
#include "string"
#include "iostream"
using namespace std;
void Student::operationMenu(User* &user) {
    /*StudentService studentService;
    user->operationMenu();
    Student* stu = (Student*)user;
    int choice = 0;
    while(true){
        cout<<"\t\t1.查看课程信息\t\t"<<endl;
        cout<<"\t\t2.选课\t\t"<<endl;
        cout<<"\t\t3.查看成绩\t\t"<<endl;
        cout<<"\t\t4.查看学业进程表\t\t"<<endl;

        cout<<"请输入你的选择(输入0返回到上层目录):";
        cin>>choice;
        switch (choice) {
            case 0:{
                cout<<"返回到上层目录"<<endl;
                system("pause");
                system("cls");
                return;
            }

            case 1:{
                cout<<"查看课程信息"<<endl;
                studentService.showAllStudentList();
                break;
            }

            case 2:{
                cout<<"选课："<<endl;
                studentService.batchInsertStudent();
                break;
            }

            case 3:{
                cout<<"查看成绩:"<<endl;

                break;
            }
            case 4:{
                cout<<"查看学生学业进程表:"<<endl;
                studentService.showStudentProgressChart(st);
                system("pause");
                system("cls");
                break;

            }

            default:{
                cout<<"输入有误，请重新选择！"<<endl;
                system("pause");
                system("cls");
                break;
            }

        }


    }*/

}


const std::string &Student::getId() const {
    return id;
}

void Student::setId(const std::string &id) {
    Student::id = id;
}

const std::string &Student::getName() const {
    return name;
}

void Student::setName(const std::string &name) {
    Student::name = name;
}

const std::string &Student::getClassId() const {
    return classId;
}

void Student::setClassId(const std::string &classId) {
    Student::classId = classId;
}

const std::string &Student::getGender() const {
    return gender;
}

void Student::setGender(const std::string &gender) {
    Student::gender = gender;
}

int Student::getAge() const {
    return age;
}

void Student::setAge(int age) {
    Student::age = age;
}

const std::string &Student::getDormNo() const {
    return dormNo;
}

void Student::setDormNo(const std::string &dormNo) {
    Student::dormNo = dormNo;
}

const std::string &Student::getPhoneNumber() const {
    return phoneNumber;
}

void Student::setPhoneNumber(const std::string &phoneNumber) {
    Student::phoneNumber = phoneNumber;
}

Student::Student() {

}

Student::~Student() {

}
//todo 继续重构代码 基类 管理员类 教师类 学生类
